<?php
/**
 * Created by PhpStorm.
 * User: white
 * Date: 2020/5/11
 * Time: 13:45
 */

namespace app\common\validate;

use think\Validate;

class Student extends Validate
{
    protected $rule = [
        'photo|照片' => 'require|image',
        'sname|学生姓名' => 'require|unique:student',
        'school|所属学院' => 'require',
        'age|年龄' => 'require|number|between:1,100',
        'sex|性别' => 'require',
        'address|所在地区' => 'require',
        'score|评分' => 'require|number|in:1,2,3,4,5',
        'motto|个人感觉' => 'require',
    ];
}